import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('@/views/index'),
  },
  {
    path: '/login',
    component: () => import('@/views/login'),
  },
  {
    path: '/activity/medicalRepresent/:id',
    component: () => import('@/views/activity/medicalRepresent.vue'),
  },
]

const router = new VueRouter({
  mode: 'hash',
  scrollBehavior: () => ({ y: 0 }),
  routes
})

export default router
